/*索引签名 [index: number]: string
const names: InterfaceIndex = ["a", "b", "c"]*/
// 索引签名 [index: string]: any 不报错
// 1.索引要求必须是字符串类型，name[0]=>names["0"]
var names = ["a", "b", "c"];
console.log(names[0]);
console.log(names[1]);
console.log(names[2]);
